using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Data;

using PlugNT.Safe;
using PlugNT.Cms.Custom;
using PlugNT.Database;
using PlugNT.Database.Common.Simple;
using PlugNT.App.Shop.Model;

namespace PlugNT.App.Shop.BLL
{
    public class OrderGoods 
    {

        private static readonly PlugNT.App.Shop.DAL.OrderGoods dal = new PlugNT.App.Shop.DAL.OrderGoods();



        public bool Add(OrderGoodsInfo model)
        {
            return dal.Add(model);
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }

        public static bool DeleteByUserId(int sysModelId,int userId)
        {
            return  dal.DeleteByUserId(sysModelId,userId);
        }




        public DataTable GetList(int sysModelId, string andWhere)
        {
            return dal.GetList(sysModelId, andWhere);
        }


        public static OrderGoodsInfo GetOrderGoodsInfo(int id)
        {
            return PlugNT.App.Shop.DAL.OrderGoods.GetOrderGoodsInfo(id);
        }


        public static OrderGoodsInfo GetOrderGoodsInfo(string no)
        {
            return PlugNT.App.Shop.DAL.OrderGoods.GetOrderGoodsInfo(no);
        }



    }
}

